<template>
	<!-- 添加车辆 -->
	<view class="addCar">
		<view class="selects">
			<view class="item-content">
				<view class="row"><text>车牌号</text>
					<input style="font-size: 28rpx" type="text" placeholder="请输入">
				</view>
				<view class="row"><text>车辆品牌</text>
					<navigator url="./carBrand/carBrand" hover-class="navigator-hover">
						<text>请选择</text><text class="iconfont icon-you"></text>
					</navigator>
				</view>
				<view class="row"><text>车辆型号</text>
					<input style="font-size: 28rpx" type="text" placeholder="请输入">
				</view>
				<view class="row"><text>车身颜色</text>
					<input style="font-size: 28rpx" type="text" placeholder="请输入">
				</view>
				<view class="row"><text>车辆图片</text>
					<uni-file-picker file-mediatype="image" :image-styles="imageStyles">
						<view class="onload">
							<view style="text-align: center;">+</view>
							<view>图片上传</view>
						</view>
					</uni-file-picker>
				</view>
			</view>
			<view class="defails-item">
				<view class="item-title">
					<text>住户信息</text>
				</view>
				<view class="item-content host">
					<view class="row"><text>住户姓名</text><text>蒋依依</text></view>
					<view class="row"><text>手机号码</text><text>15619009090</text></view>
				</view>
			</view>
		</view>

		<!-- 保存 -->
		<navigator url="../myCar" open-type="navigateBack" hover-class="navigator-hover">
			<button type="default">保存</button>
		</navigator>

	</view>

</template>


<script>
	export default {
		components: {},
		data() {
			return {
				imageStyles: {
					width: 64,
					height: 64,
					border: {
						width: 2,
						style: 'solid',
						radius: '2px'
					}
				},
			}
		},
		methods: {
			switch1Change: function(e) {
				console.log('switch1 发生 change 事件，携带值为', e.detail.value)
			},
			onnodeclick(e) {
				console.log(e);
			},
			onpopupopened(e) {
				console.log('popupopened');
			},
			onpopupclosed(e) {
				console.log('popupclosed');
			},
			onchange(e) {
				console.log('onchange:', e);
			}
		},
	}
</script>

<style lang="less" scoped>
	@import url('../../../static/font/iconfont.css');

	.addCar {
		margin-top: 30rpx;

		.selects {
			padding-left: 38rpx;
			padding-right: 38rpx;
			display: flex;
			flex-direction: column;
			align-items: flex-start;
			border-radius: 10rpx;
			margin-bottom: 42rpx;
			border-top: 1px solid #eee;
			border-bottom: 1px solid #eee;

			.item-content {
				width: 100%;
				display: flex;
				flex-direction: column;
				align-items: flex-start;

				.row {
					display: flex;
					width: 100%;
					justify-content: flex-start;
					padding: 30rpx 0;
					border-bottom: 1px solid #eee;

					.onload {
						font-size: 24rpx;
						color: #d2d2d1;
					}

					text:nth-child(1) {
						text-align: left;
						width: 230rpx;
						font-size: 32rpx;
					}

					// text:nth-child(1) {
					// 	font-size: 28rpx;
					// }
					navigator,
					.row-tanchu {
						flex: 1;
						align-items: center;
						display: flex;
						justify-content: space-between;

						text:nth-child(1) {
							width: 260rpx;
							font-size: 28rpx;
							color: #a8a8a8;
							text-align: left;
						}
					}
				}

				.row:last-child {
					border: 0px;
				}

			}

			.defails-item {
				width: 100%;
				// padding-top: 40rpx;
				// padding-left: 38rpx;
				// padding-right: 38rpx;
				margin-top: 30rpx;
				display: flex;
				flex-direction: column;
				align-items: flex-start;
				// border-radius: 10rpx;
				margin-bottom: 42rpx;
				// box-shadow: 0px 0px 15rpx rgba(0, 0, 0, .2);

				.item-title {
					display: flex;
					margin-bottom: 30rpx;
					align-items: center;
					justify-content: flex-start;

					view {
						width: 16rpx;
						height: 34rpx;
						background-color: #056cff;
						border-radius: 8rpx;
					}

					text {
						// margin-left: 20rpx;
						font-size: 32rpx;

					}
				}

				.item-content {
					width: 100%;
					display: flex;
					flex-direction: column;
					align-items: flex-start;

					.row {
						display: flex;
						width: 100%;
						justify-content: flex-start;
						padding: 30rpx 0;
						border-bottom: 1px solid #eee;

						text:nth-child(1) {
							color: #a8a8a8;
							text-align: left;
							width: 170rpx;
						}

					}

					.row:last-child {
						border: 0px;
					}

				}

				.host {
					.row {
						text:nth-child(1) {
							width: 200rpx;
						}
					}
				}
			}
		}

		button {
			width: 680rpx;
			height: 80rpx;
			font-size: 36rpx;
			padding: 0;
			line-height: 80rpx;
			background: #006fff;
			color: white;
			margin-top: 80rpx;
		}

	}
</style>
<style lang="less">
	.addCar {
		.uni-steps {
			margin: 60rpx auto;

			.uni-icons {
				font-size: 40rpx !important;
			}
		}

		.input-value-border {
			border: 0px !important;
		}

		.input-value {
			padding: 0px !important;

		}

		.placeholder {
			color: #a8a8a8 !important;
			font-size: 32rpx !important;
		}

		.input-arrow {
			display: none;
		}

		.tab-c {
			height: 200rpx !important;
		}

		.selected-list {
			height: 0px !important;

		}

		.item-text-overflow {
			width: 100% !important;
			text-align: center;
		}
	}
</style>
